﻿using Basic.HrRemoteModel;
using WeDonekRpc.Helper.Validate;

namespace Basic.HrGatewayModular.Model.Msg
{
    public class MsgGetUI
    {
        [NullValidate("hr.msg.classify.null")]
        [LenValidate("hr.msg.classify.len", 2, 10, IsArray = false)]
        public string[] MsgClassify
        {
            get;
            set;
        }
        [EnumValidate("hr.msg.type.error", typeof(HrMsgType))]
        public HrMsgType MsgType
        {
            get;
            set;
        }
        [EnumValidate("hr.msg.status.error", typeof(HrMsgStatus))]
        public HrMsgStatus? MsgStatus
        {
            get;
            set;
        }
        public bool? IsRead { get; set; }

        [LenValidate("hr.msg.tag.len", 3)]
        public string Tag { get; set; }
    }
}
